package edu.ahut.designpattern.decorator;

import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Scanner;

public class DecoratorDemo {
    public static void main(String[] args) throws IOException {
        File file=new File("a.txt");

//        File file2=new File("C:","b.txt");//
//        if(file.exists()){
//
//        }
//        if(file.isDirectory()){
//
//        }
        file.createNewFile();
        //file.mkdir();

        FileInputStream fis=new FileInputStream(file);

        BufferedInputStream bis=new BufferedInputStream(fis);

        Scanner cin=new Scanner(file);

        cin=new Scanner(bis);

    }
}
